class Student:
    def __init__(self,student_id,name,age,gender,height,weight,score,address,phone_number):
        self.student_id=student_id
        self.name=name
        self.age=age
        self.gender=gender
        self.height=height
        self.weight=weight
        self.scoee=score
        self.address=address
        self.phone_number=phone_number

    def study(self,study_time):
        print(f"学习时间：{study_time}")

    def game(self,game_name):
        print("游戏名字：%s"%(game_name))

    def programming(self,number_row):
        print("代码行数：%d"%(number_row))

    def sum(self,*args):
        sum=sum(args)
        return sum

class Car:
    def __init__(self,vehicle,wheel,color,weight,fuel_tank):
        self.vehicle=vehicle
        self.wheel=wheel
        self.color=color
        self.weight=weight
        self.fuel_tank=fuel_tank

    def run(self,function):
        print("该车型的功能为：%s"%(function))

ferrari=Car("1",4,"红色","2t",5)
BMW=Car("1",4,"红色","2t",5)
Suzuki=Car("1",4,"红色","2t",5)
Wuling=Car("1",4,"红色","2t",5)
tractor=Car("1",4,"红色","2t",5)

class Notebook:
    def __init__(self, model, standby_time, color, weight, cpu_model, memory_size, hard_disk_size):
        self.model = model
        self.standby_time = standby_time
        self.color = color
        self.weight = weight
        self.cpu_model = cpu_model
        self.memory_size = memory_size
        self.hard_disk_size = hard_disk_size

    def play_game(self, game_name):
        print(f"正在玩《{game_name}》。")

    def office_work(self):
        print(f"正在进行办公操作。")

class Monkey:
    def __init__(self, category, gender, body_color, weight):
        self.category = category
        self.gender = gender
        self.body_color = body_color
        self.weight = weight
        self.knowledge = []

    def make_fire(self, material):
        print(f"猴子使用{material}成功造火！")

    def learn_something(self, thing):
        self.knowledge.append(thing)
        print(f"猴子学会了 {thing}。")

#第二部分
class human:
    def __init__(self, name, gender, age, phone_balance, phone_brand, battery_capacity, screen_size, max_standby_time,
                 points):
        self.name = name
        self.gender = gender
        self.age = age
        self.phone_balance = phone_balance
        self.phone_brand = phone_brand
        self.battery_capacity = battery_capacity
        self.screen_size = screen_size
        self.max_standby_time = max_standby_time
        self.points = points

    def send_sms(self,message):
        print(f"发信息：{message}")

    def make_call(self, phone_number, call_duration):
        if not phone_number or self.phone_balance<1:
            if not phone_number:
                print("号码为空")
            elif self.phone_balance<1:
                print("话费余额不足1元")
        else:
            print(f"正在拨打{phone_number}")
            if 0<call_duration<=10:
                cost=call_duration * 1
                self.phone_balance-=call_duration * 1
                self.points=call_duration * 15
            elif 10<call_duration<=20:
                cost=call_duration * 0.8
                self.phone_balance-=call_duration * 0.8
                self.points = call_duration * 39
            else:
                cost=call_duration * 0.65
                self.phone_balance-=call_duration * 0.65
                self.points = call_duration * 48
            print(f"通话结束，本次通话扣除费用：{cost}元")


